package org.dromara.finance.mapper;

import org.dromara.finance.domain.SupplierCategory;
import org.dromara.finance.domain.vo.SupplierCategoryVo;
import org.dromara.common.mybatis.core.mapper.BaseMapperPlus;

import java.util.List;

/**
 * 供应商分类Mapper接口
 *
 * @author xxy
 * @date 2025-08-15
 */
public interface SupplierCategoryMapper extends BaseMapperPlus<SupplierCategory, SupplierCategoryVo> {

    List<SupplierCategory> selectChildren(Long categoryId);

    List<SupplierCategory> selectListIgnoreParent();

    int hasChildByCategoryId(Long id);

    int checkSupplierCategoryExistSupplier(Long id);
}
